package com.cuit.zuke.product.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cuit.zuke.product.model.entity.Goods;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public interface GoodsService extends IService<Goods> {
    void updateStatus(Long id, Integer status);

    void exportGoodsData(HttpServletResponse response);

    void importGoodsFile(MultipartFile file);

    boolean updateGoodsAndImgFile(Goods goods,MultipartFile imgFile) throws IOException;

    boolean updateGoods(Goods goods);

    String getGoodsName(Long id);

    boolean deleteById(Long id);

    void add(Goods goods);

    Page<Goods> selectPage(Page<Goods> page1, QueryWrapper<Goods> wrapper);
}
